<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models\Active;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

/**
 * Class Active
 *
 * @property int $id
 * @property string $name
 * @property Carbon $active_start_time
 * @property Carbon $active_end_time
 * @property Carbon $report_end_time
 * @property float $price
 * @property int $buy_number
 * @property string $info
 * @property string $cover_img
 * @property string $sponsor
 * @property Carbon $created_at
 * @property Carbon $updated_at
 *
 * @package App\Models
 */
class Active extends Model
{
	protected $table = 'actives';

	protected $casts = [
		'price' => 'float',
		'buy_number' => 'int'
	];

	protected $dates = [
		'active_start_time',
		'active_end_time',
		'report_end_time'
	];

	protected $fillable = [
		'name',
		'active_start_time',
		'active_end_time',
		'report_end_time',
		'price',
		'buy_number',
		'info',
		'cover_img',
		'sponsor'
	];
}
